Joystick DLL 4/26/93 *************************************************************** THIS PROGRAM IS SHAREWARE. IF YOU USE THIS DLL PLEASE SEND $15.00 to: Bret Dabel or Robert Martin 1124 ROBIN WAY SUNNYVALE, CA 94087 IF YOU SEND $15.00 YOU WILL RECEIVE THE SOURCE TO THE DLL IN C++ AND A LIST OF OTHER ROUTINES WHICH ARE AVAILABLE. *************************************************************** The main reason this DLL was written was to be able to access the joystick settings for writing games using Visual Basic. This DLL returns the x and y coordinates and button settings for either joystick 1 or 2. Also this DLL can read the joystick settings by either the hardware or BIOS. To call the DLL you need to supply: Joystick: 1 = Joystick #1 2 = Joystick #2 Method: 0 = hardware 1 = BIOS It returns the: The function itself returns true or false x coordinates between 0 and 1000 y coordinates between 0 and 1000 button #1: 0 = Not pressed 1 = Pressed button #2: 0 = Not pressed 1 = Pressed Example of declare in Visual Basic: Declare Function jstick Lib "JSTICK.DLL" Alias "#2" (ByVal method As Integer, ByVal joystick As Integer, xcord As Integer, ycord As Integer, but1 As Integer, but2 As Integer) As Integer NOTES: To run this DLL copy it to your windows system directory. (Ex. c:\windows\system\jstick.dll) If you run the example jstick try minimizing it. This DLL will 60 days after its first run. If you want to run it after 60 days please pay for it and receive an unlimited time copy and the source. If you purchase the source you will need a C++ compiler that can generate DLL's. If you have any questions please send them to me on Compuserve. ID# 71736,242